package com.dianping.cat.alarm;

import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class UserDefineRuleDao
  extends AbstractDao {
/* 10 */   public UserDefineRule createLocal() { return new UserDefineRule(); }





/* 16 */   public int deleteByPK(UserDefineRule proto) throws DalException { return getQueryEngine().deleteSingle(UserDefineRuleEntity.DELETE_BY_PK, proto); }




  public UserDefineRule findByPK(int keyId, Readset<UserDefineRule> readset) throws DalException {
/* 22 */     UserDefineRule proto = new UserDefineRule();

/* 24 */     proto.setKeyId(keyId);

/* 26 */     return (UserDefineRule)getQueryEngine().querySingle(UserDefineRuleEntity.FIND_BY_PK, proto, readset);
  }






  public UserDefineRule findMaxId(Readset<UserDefineRule> readset) throws DalException {
/* 35 */     UserDefineRule proto = new UserDefineRule();

/* 37 */     return (UserDefineRule)getQueryEngine().querySingle(UserDefineRuleEntity.FIND_MAX_ID, proto, readset);
  }








/* 47 */   protected Class<?>[] getEntityClasses() { return new Class[] { UserDefineRuleEntity.class }; }



/* 51 */   public int insert(UserDefineRule proto) throws DalException { return getQueryEngine().insertSingle(UserDefineRuleEntity.INSERT, proto); }





/* 57 */   public int updateByPK(UserDefineRule proto, Updateset<UserDefineRule> updateset) throws DalException { return getQueryEngine().updateSingle(UserDefineRuleEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/UserDefineRuleDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */